<?php
    
    //dbconnector.php
    
    define('DATABASEHOST','localhost');
    define('DATABASEHOSTPORT','3306');
    define('DATABASEUSERNAME','root');
    define('DATABASEPASSWORD','');
    define('DATABASENAME','mircogroud');
    
    $fullhosturl = DATABASEHOST . ':' . DATABASEHOSTPORT;
    $dbconn = mysql_connect($fullhosturl,DATABASEUSERNAME,DATABASEPASSWORD);
    if (!$dbconn)
    {
         die('Could not connect: ' . mysql_error());
    } else {
        mysql_select_db(DATABASENAME,$dbconn);
    }
?>